﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Ink_Canvas
{
    /// <summary>
    /// Window2.xaml 的交互逻辑
    /// </summary>
    public partial class Window2 : Window
    {
        private object word;

        public Window2()
        {
            InitializeComponent();
            webview2.Source = new Uri("about:blank");
        }

        private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
        }

       
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string text = textBox1.Text;
            webview2.CoreWebView2.Navigate("https://dict.youdao.com/result?word="+text+"&lang=en");

        }

        private void chaci_MouseUp(object sender, MouseButtonEventArgs e)
        {
            string text = textBox1.Text;
            webview2.CoreWebView2.Navigate("https://dict.youdao.com/result?word=" + text + "&lang=en");
        }

        private void textBox1_TextChanged(object sender, TextChangedEventArgs e)
        {

        }
    }
}
